﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200034B RID: 843
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ComposeSelectedRelicScRsp : IMessage<ComposeSelectedRelicScRsp>, IMessage, IEquatable<ComposeSelectedRelicScRsp>, IDeepCloneable<ComposeSelectedRelicScRsp>, IBufferMessage
	{
		// Token: 0x17000AF7 RID: 2807
		// (get) Token: 0x060025EB RID: 9707 RVA: 0x0006ABC3 File Offset: 0x00068DC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ComposeSelectedRelicScRsp> Parser
		{
			get
			{
				return ComposeSelectedRelicScRsp._parser;
			}
		}

		// Token: 0x17000AF8 RID: 2808
		// (get) Token: 0x060025EC RID: 9708 RVA: 0x0006ABCA File Offset: 0x00068DCA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ComposeSelectedRelicScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000AF9 RID: 2809
		// (get) Token: 0x060025ED RID: 9709 RVA: 0x0006ABDC File Offset: 0x00068DDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ComposeSelectedRelicScRsp.Descriptor;
			}
		}

		// Token: 0x060025EE RID: 9710 RVA: 0x0006ABE3 File Offset: 0x00068DE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ComposeSelectedRelicScRsp()
		{
		}

		// Token: 0x060025EF RID: 9711 RVA: 0x0006ABEC File Offset: 0x00068DEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ComposeSelectedRelicScRsp(ComposeSelectedRelicScRsp other) : this()
		{
			this.composeId_ = other.composeId_;
			this.returnItemList_ = ((other.returnItemList_ != null) ? other.returnItemList_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060025F0 RID: 9712 RVA: 0x0006AC44 File Offset: 0x00068E44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ComposeSelectedRelicScRsp Clone()
		{
			return new ComposeSelectedRelicScRsp(this);
		}

		// Token: 0x17000AFA RID: 2810
		// (get) Token: 0x060025F1 RID: 9713 RVA: 0x0006AC4C File Offset: 0x00068E4C
		// (set) Token: 0x060025F2 RID: 9714 RVA: 0x0006AC54 File Offset: 0x00068E54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ComposeId
		{
			get
			{
				return this.composeId_;
			}
			set
			{
				this.composeId_ = value;
			}
		}

		// Token: 0x17000AFB RID: 2811
		// (get) Token: 0x060025F3 RID: 9715 RVA: 0x0006AC5D File Offset: 0x00068E5D
		// (set) Token: 0x060025F4 RID: 9716 RVA: 0x0006AC65 File Offset: 0x00068E65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList ReturnItemList
		{
			get
			{
				return this.returnItemList_;
			}
			set
			{
				this.returnItemList_ = value;
			}
		}

		// Token: 0x17000AFC RID: 2812
		// (get) Token: 0x060025F5 RID: 9717 RVA: 0x0006AC6E File Offset: 0x00068E6E
		// (set) Token: 0x060025F6 RID: 9718 RVA: 0x0006AC76 File Offset: 0x00068E76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060025F7 RID: 9719 RVA: 0x0006AC7F File Offset: 0x00068E7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ComposeSelectedRelicScRsp);
		}

		// Token: 0x060025F8 RID: 9720 RVA: 0x0006AC90 File Offset: 0x00068E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ComposeSelectedRelicScRsp other)
		{
			return other != null && (other == this || (this.ComposeId == other.ComposeId && object.Equals(this.ReturnItemList, other.ReturnItemList) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060025F9 RID: 9721 RVA: 0x0006ACF0 File Offset: 0x00068EF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ComposeId != 0U)
			{
				num ^= this.ComposeId.GetHashCode();
			}
			if (this.returnItemList_ != null)
			{
				num ^= this.ReturnItemList.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060025FA RID: 9722 RVA: 0x0006AD5E File Offset: 0x00068F5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060025FB RID: 9723 RVA: 0x0006AD66 File Offset: 0x00068F66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060025FC RID: 9724 RVA: 0x0006AD70 File Offset: 0x00068F70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this.returnItemList_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.ReturnItemList);
			}
			if (this.ComposeId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.ComposeId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060025FD RID: 9725 RVA: 0x0006ADE8 File Offset: 0x00068FE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ComposeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ComposeId);
			}
			if (this.returnItemList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ReturnItemList);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060025FE RID: 9726 RVA: 0x0006AE58 File Offset: 0x00069058
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ComposeSelectedRelicScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ComposeId != 0U)
			{
				this.ComposeId = other.ComposeId;
			}
			if (other.returnItemList_ != null)
			{
				if (this.returnItemList_ == null)
				{
					this.ReturnItemList = new ItemList();
				}
				this.ReturnItemList.MergeFrom(other.ReturnItemList);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060025FF RID: 9727 RVA: 0x0006AED4 File Offset: 0x000690D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002600 RID: 9728 RVA: 0x0006AEE0 File Offset: 0x000690E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 74U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ComposeId = input.ReadUInt32();
						}
					}
					else
					{
						if (this.returnItemList_ == null)
						{
							this.ReturnItemList = new ItemList();
						}
						input.ReadMessage(this.ReturnItemList);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000F45 RID: 3909
		private static readonly MessageParser<ComposeSelectedRelicScRsp> _parser = new MessageParser<ComposeSelectedRelicScRsp>(() => new ComposeSelectedRelicScRsp());

		// Token: 0x04000F46 RID: 3910
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000F47 RID: 3911
		public const int ComposeIdFieldNumber = 14;

		// Token: 0x04000F48 RID: 3912
		private uint composeId_;

		// Token: 0x04000F49 RID: 3913
		public const int ReturnItemListFieldNumber = 9;

		// Token: 0x04000F4A RID: 3914
		private ItemList returnItemList_;

		// Token: 0x04000F4B RID: 3915
		public const int RetcodeFieldNumber = 6;

		// Token: 0x04000F4C RID: 3916
		private uint retcode_;
	}
}
